package com.qingzhuge.exception;

import com.qingzhuge.common.HttpCode;

/**
 * @author : zero.xiao
 * @description :登录错误
 * @modified :
 */
public class TokenException extends BaseException {
    private static final long serialVersionUID = 8384737809262292161L;

    public TokenException() {
        super(HttpCode.TOKEN_VALIDATOR_FAILED.message());
    }

    public TokenException(String message) {
        super(message);
    }

    @Override
    public int getCode() {
        return HttpCode.TOKEN_VALIDATOR_FAILED.value();
    }
}
